package com.br.principal;

import com.br.objetos.ClienteMobile;
import com.br.outros.MailSenderMobile;

public class insereTempDistThread extends Thread {
	public static void rodar(final String login) {
		new Thread() {
			public void run() {
				try {
					ClienteMobile temp = new ClienteMobile();
					sleep(15000);
					// System.out.println("\n---------\n\tENTROU PARA RESPONDER CONVITE\n------------\t");
					temp.calculaDistancia(login);
				} catch (Exception e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
					MailSenderMobile mail = new MailSenderMobile();
					mail.enviaEmailsErro("ERRO THREAD TEMP DISTANCIAS<BR />\n"
							+ e.toString());
				}
			}
		}.start();

	}
}
